<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>社交圈 - 问答社区</title>
    <!-- Bootstrap 5 CSS -->
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
    <!-- Font Awesome -->
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
    
    <style>
        /* 基础样式 */
        body {
            font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
            background-color: #f8fafc;
            color: #334155;
            line-height: 1.6;
        }
        
        /* 导航栏样式 */
        .navbar {
            background-color: white;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
            padding: 0.75rem 0;
        }
        
        .logo {
            font-weight: 700;
            font-size: 1.5rem;
            color: #2563eb;
            text-decoration: none;
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }
        
        .logo i {
            font-size: 1.75rem;
        }
        
        .nav-link {
            color: #64748b;
            font-weight: 500;
            margin: 0 0.5rem;
            transition: all 0.2s ease;
            padding: 0.5rem 0.75rem;
        }
        
        .nav-link:hover, .nav-link.active {
            color: #2563eb;
        }
        
        .search-bar {
            max-width: 300px;
            width: 100%;
            position: relative;
        }
        
        .search-bar input {
            padding-left: 2.5rem;
            background-color: #f1f5f9;
            border-color: #e2e8f0;
        }
        
        .search-bar i {
            position: absolute;
            left: 0.75rem;
            top: 50%;
            transform: translateY(-50%);
            color: #94a3b8;
        }
        
        .user-actions {
            display: flex;
            align-items: center;
            gap: 1rem;
        }
        
        .user-avatar {
            width: 38px;
            height: 38px;
            border-radius: 50%;
            object-fit: cover;
            cursor: pointer;
            border: 2px solid transparent;
            transition: border-color 0.2s ease;
        }
        
        .user-avatar:hover {
            border-color: #2563eb;
        }
        
        .create-btn {
            background-color: #2563eb;
            color: white;
            border: none;
            border-radius: 6px;
            padding: 0.5rem 1rem;
            display: flex;
            align-items: center;
            gap: 0.5rem;
            font-weight: 500;
            transition: all 0.2s ease;
        }
        
        .create-btn:hover {
            background-color: #1d4ed8;
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
        }
        
        /* 主内容区 */
        .main-container {
            padding: 2rem 0;
        }
        
        /* 页面标题区 */
        .page-header {
            margin-bottom: 1.5rem;
        }
        
        .page-title {
            font-size: 1.8rem;
            font-weight: 700;
            color: #1e293b;
            margin-bottom: 0.5rem;
        }
        
        .page-description {
            color: #64748b;
            max-width: 800px;
        }
        
        /* 筛选区域 */
        .filters-container {
            background-color: white;
            border-radius: 10px;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
            padding: 1.5rem;
            margin-bottom: 2rem;
        }
        
        .filter-section {
            margin-bottom: 1.5rem;
        }
        
        .filter-title {
            font-weight: 600;
            margin-bottom: 1rem;
            color: #1e293b;
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }
        
        .filter-title i {
            color: #2563eb;
        }
        
        .advanced-filters-toggle {
            color: #2563eb;
            background: none;
            border: none;
            display: flex;
            align-items: center;
            gap: 0.25rem;
            font-weight: 500;
            padding: 0.25rem 0;
            cursor: pointer;
            transition: color 0.2s ease;
        }
        
        .advanced-filters-toggle:hover {
            color: #1d4ed8;
        }
        
        .filter-row {
            display: flex;
            flex-wrap: wrap;
            gap: 1rem;
            margin-bottom: 1rem;
        }
        
        .filter-group {
            flex: 1;
            min-width: 200px;
        }
        
        .filter-label {
            display: block;
            margin-bottom: 0.5rem;
            font-weight: 500;
            color: #475569;
            font-size: 0.95rem;
        }
        
        .form-select, .form-control {
            width: 100%;
            padding: 0.65rem 1rem;
            border-radius: 6px;
            border: 1px solid #e2e8f0;
            transition: all 0.2s ease;
        }
        
        .form-select:focus, .form-control:focus {
            outline: none;
            border-color: #2563eb;
            box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
        }
        
        .tag-filter {
            display: flex;
            flex-wrap: wrap;
            gap: 0.75rem;
        }
        
        .tag-item {
            background-color: #f1f5f9;
            border: 1px solid #e2e8f0;
            border-radius: 20px;
            padding: 0.35rem 1rem;
            font-size: 0.9rem;
            color: #475569;
            cursor: pointer;
            transition: all 0.2s ease;
        }
        
        .tag-item:hover {
            background-color: #e2e8f0;
        }
        
        .tag-item.active {
            background-color: #dbeafe;
            border-color: #93c5fd;
            color: #1d4ed8;
            font-weight: 500;
        }
        
        .filter-actions {
            display: flex;
            justify-content: flex-end;
            gap: 1rem;
            margin-top: 1rem;
            padding-top: 1rem;
            border-top: 1px solid #f1f5f9;
        }
        
        .btn-reset {
            background-color: #f1f5f9;
            color: #64748b;
            border: none;
            border-radius: 6px;
            padding: 0.65rem 1.5rem;
            font-weight: 500;
            transition: all 0.2s ease;
        }
        
        .btn-reset:hover {
            background-color: #e2e8f0;
            color: #475569;
        }
        
        .btn-apply {
            background-color: #2563eb;
            color: white;
            border: none;
            border-radius: 6px;
            padding: 0.65rem 1.5rem;
            font-weight: 500;
            transition: all 0.2s ease;
        }
        
        .btn-apply:hover {
            background-color: #1d4ed8;
            box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
        }
        
        /* 排序和视图切换 */
        .sort-view-controls {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 1.5rem;
            flex-wrap: wrap;
            gap: 1rem;
        }
        
        .sort-controls {
            display: flex;
            align-items: center;
            gap: 1rem;
        }
        
        .sort-label {
            font-weight: 500;
            color: #475569;
        }
        
        .sort-options {
            display: flex;
            gap: 0.5rem;
        }
        
        .sort-option {
            background-color: white;
            border: 1px solid #e2e8f0;
            border-radius: 6px;
            padding: 0.4rem 0.8rem;
            font-size: 0.9rem;
            cursor: pointer;
            transition: all 0.2s ease;
            display: flex;
            align-items: center;
            gap: 0.35rem;
        }
        
        .sort-option:hover {
            border-color: #cbd5e1;
        }
        
        .sort-option.active {
            background-color: #eff6ff;
            border-color: #93c5fd;
            color: #1d4ed8;
            font-weight: 500;
        }
        
        .view-controls {
            display: flex;
            gap: 0.5rem;
        }
        
        .view-option {
            background-color: white;
            border: 1px solid #e2e8f0;
            border-radius: 6px;
            width: 36px;
            height: 36px;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.2s ease;
            color: #64748b;
        }
        
        .view-option:hover {
            border-color: #cbd5e1;
            color: #475569;
        }
        
        .view-option.active {
            background-color: #eff6ff;
            border-color: #93c5fd;
            color: #1d4ed8;
        }
        
        /* 问答列表样式 */
        .qa-list {
            display: flex;
            flex-direction: column;
            gap: 1.5rem;
        }
        
        .qa-item {
            background-color: white;
            border-radius: 10px;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
            overflow: hidden;
            transition: all 0.2s ease;
        }
        
        .qa-item:hover {
            transform: translateY(-3px);
            box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
        }
        
        .qa-item-content {
            padding: 1.5rem;
        }
        
        .qa-header {
            display: flex;
            justify-content: space-between;
            margin-bottom: 1rem;
            align-items: flex-start;
        }
        
        .qa-stats {
            display: flex;
            flex-direction: column;
            align-items: center;
            background-color: #f8fafc;
            border-radius: 6px;
            padding: 0.75rem;
            min-width: 60px;
        }
        
        .qa-answers {
            font-weight: 600;
            color: #2563eb;
            font-size: 1.1rem;
        }
        
        .qa-answers-label {
            font-size: 0.85rem;
            color: #64748b;
        }
        
        .qa-main {
            flex: 1;
            padding-left: 1.5rem;
        }
        
        .qa-title {
            font-size: 1.25rem;
            font-weight: 600;
            margin-bottom: 0.75rem;
            color: #1e293b;
            transition: color 0.2s ease;
        }
        
        .qa-title:hover {
            color: #2563eb;
        }
        
        .qa-title a {
            text-decoration: none;
            color: inherit;
        }
        
        .qa-tags {
            display: flex;
            flex-wrap: wrap;
            gap: 0.75rem;
            margin-bottom: 1rem;
        }
        
        .qa-tag {
            background-color: #f1f5f9;
            color: #64748b;
            font-size: 0.85rem;
            padding: 0.25rem 0.75rem;
            border-radius: 4px;
            transition: all 0.2s ease;
        }
        
        .qa-tag:hover {
            background-color: #e2e8f0;
            color: #475569;
        }
        
        .qa-meta {
            display: flex;
            justify-content: space-between;
            align-items: center;
            font-size: 0.9rem;
            color: #64748b;
        }
        
        .qa-author {
            display: flex;
            align-items: center;
            gap: 0.75rem;
        }
        
        .author-info {
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }
        
        .author-avatar {
            width: 32px;
            height: 32px;
            border-radius: 50%;
            object-fit: cover;
        }
        
        .author-name {
            font-weight: 500;
            color: #334155;
        }
        
        .qa-time {
            display: flex;
            align-items: center;
            gap: 0.25rem;
        }
        
        .qa-status {
            display: inline-flex;
            align-items: center;
            gap: 0.25rem;
            padding: 0.25rem 0.75rem;
            border-radius: 4px;
            font-weight: 500;
            font-size: 0.85rem;
        }
        
        .status-unanswered {
            background-color: #fff1f2;
            color: #dc2626;
        }
        
        .status-answered {
            background-color: #f0fdf4;
            color: #16a34a;
        }
        
        .status-resolved {
            background-color: #eff6ff;
            color: #1d4ed8;
        }
        
        /* 网格视图样式 */
        .qa-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
            gap: 1.5rem;
        }
        
        .qa-grid .qa-item {
            display: flex;
            flex-direction: column;
            height: 100%;
        }
        
        .qa-grid .qa-header {
            flex-direction: column;
        }
        
        .qa-grid .qa-stats {
            flex-direction: row;
            justify-content: space-between;
            width: 100%;
            margin-bottom: 1rem;
            padding: 0.5rem 0.75rem;
        }
        
        .qa-grid .qa-main {
            padding-left: 0;
        }
        
        .qa-grid .qa-meta {
            margin-top: auto;
            flex-direction: column;
            align-items: flex-start;
            gap: 0.5rem;
        }
        
        /* 分页样式 */
        .pagination-container {
            margin-top: 3rem;
            display: flex;
            justify-content: center;
        }
        
        .pagination {
            display: flex;
            gap: 0.5rem;
        }
        
        .page-item {
            width: 40px;
            height: 40px;
            border-radius: 6px;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.2s ease;
            font-weight: 500;
        }
        
        .page-item:not(.active):not(.disabled) {
            background-color: white;
            border: 1px solid #e2e8f0;
            color: #64748b;
        }
        
        .page-item:not(.active):not(.disabled):hover {
            border-color: #93c5fd;
            color: #2563eb;
        }
        
        .page-item.active {
            background-color: #2563eb;
            color: white;
        }
        
        .page-item.disabled {
            background-color: #f1f5f9;
            border: 1px solid #e2e8f0;
            color: #cbd5e1;
            cursor: not-allowed;
        }
        
        /* 响应式调整 */
        @media (max-width: 992px) {
            .search-bar {
                max-width: 200px;
            }
            
            .filter-row {
                gap: 0.75rem;
            }
        }
        
        @media (max-width: 768px) {
            .navbar-nav {
                margin-top: 1rem;
            }
            
            .search-bar {
                max-width: 100%;
                margin: 1rem 0;
            }
            
            .user-actions {
                margin-top: 1rem;
            }
            
            .qa-header {
                flex-direction: column;
            }
            
            .qa-stats {
                width: 100%;
                margin-bottom: 1rem;
                flex-direction: row;
                justify-content: space-between;
            }
            
            .qa-main {
                padding-left: 0;
            }
            
            .sort-view-controls {
                flex-direction: column;
                align-items: flex-start;
            }
            
            .qa-grid {
                grid-template-columns: 1fr;
            }
        }
        
        @media (max-width: 576px) {
            .page-title {
                font-size: 1.5rem;
            }
            
            .filter-group {
                min-width: 100%;
            }
            
            .filter-actions {
                flex-direction: column;
            }
            
            .btn-reset, .btn-apply {
                width: 100%;
            }
            
            .sort-controls {
                flex-direction: column;
                align-items: flex-start;
                gap: 0.5rem;
            }
            
            .qa-meta {
                flex-direction: column;
                align-items: flex-start;
                gap: 0.5rem;
            }
        }
    </style>
</head>
<body>
    <!-- 导航栏 -->
    <nav class="navbar navbar-expand-lg">
        <div class="container">
            <a href="#" class="logo">
                <i class="fas fa-comments"></i>
                <span>社交圈</span>
            </a>
            
            <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNav">
                <i class="fas fa-bars"></i>
            </button>
            
            <div class="collapse navbar-collapse" id="navbarNav">
                <ul class="navbar-nav me-auto">
                    <li class="nav-item">
                        <a class="nav-link" href="#"><i class="fas fa-home me-1"></i> 首页</a>
                    </li>
                    <li class="nav-item">
                        <a class="nav-link" href="#"><i class="fas fa-comments me-1"></i> 投票</a>
                    </li>
                    <li class="nav-item">
                        <a class="nav-link" href="#"><i class="fas fa-newspaper me-1"></i> 文章</a>
                    </li>
                    <li class="nav-item">
                        <a class="nav-link" href="#"><i class="fas fa-image me-1"></i> 相册</a>
                    </li>
                    <li class="nav-item">
                        <a class="nav-link" href="#"><i class="fas fa-briefcase me-1"></i> 招聘</a>
                    </li>
                    <li class="nav-item">
                        <a class="nav-link active" href="#"><i class="fas fa-question-circle me-1"></i> 问答</a>
                    </li>
                </ul>
                
                <div class="d-flex align-items-center gap-3 flex-wrap">
                    <div class="search-bar">
                        <i class="fas fa-search"></i>
                        <input type="text" class="form-control" placeholder="搜索问答...">
                    </div>
                    
                    <div class="user-actions">
                        <button class="create-btn">
                            <i class="fas fa-plus"></i>
                            <span>提问</span>
                        </button>
                        <img src="https://picsum.photos/id/1005/38/38" alt="用户头像" class="user-avatar">
                    </div>
                </div>
            </div>
        </div>
    </nav>
    
    <!-- 主内容区 -->
    <div class="main-container">
        <div class="container">
            <!-- 页面标题 -->
            <div class="page-header">
                <h1 class="page-title">问答社区</h1>
                <p class="page-description">
                    在这里你可以提问、回答和分享知识，与志同道合的人一起交流学习，解决各种问题。
                </p>
            </div>
            
            <!-- 筛选区域 -->
            <div class="filters-container">
                <div class="filter-section">
                    <h3 class="filter-title">
                        <i class="fas fa-filter"></i>
                        基本筛选
                    </h3>
                    <div class="filter-row">
                        <div class="filter-group">
                            <label class="filter-label">分类</label>
                            <select class="form-select">
                                <option value="">全部分类</option>
                                <option value="technology">技术</option>
                                <option value="science">科学</option>
                                <option value="life">生活</option>
                                <option value="education">教育</option>
                                <option value="career">职场</option>
                                <option value="health">健康</option>
                                <option value="finance">金融</option>
                            </select>
                        </div>
                        <div class="filter-group">
                            <label class="filter-label">问题状态</label>
                            <select class="form-select">
                                <option value="">全部状态</option>
                                <option value="unanswered">未回答</option>
                                <option value="answered">已回答</option>
                                <option value="resolved">已解决</option>
                            </select>
                        </div>
                        <div class="filter-group">
                            <label class="filter-label">时间范围</label>
                            <select class="form-select">
                                <option value="">不限时间</option>
                                <option value="today">今天</option>
                                <option value="week">本周</option>
                                <option value="month">本月</option>
                                <option value="quarter">本季度</option>
                                <option value="year">今年</option>
                            </select>
                        </div>
                    </div>
                </div>
                
                <!-- 高级筛选 -->
                <button class="advanced-filters-toggle" id="advancedFiltersToggle">
                    <span>高级筛选</span>
                    <i class="fas fa-chevron-down" id="advancedFiltersIcon"></i>
                </button>
                
                <div class="filter-section" id="advancedFilters" style="display: none;">
                    <h3 class="filter-title">
                        <i class="fas fa-sliders-h"></i>
                        高级筛选选项
                    </h3>
                    
                    <div class="filter-row">
                        <div class="filter-group">
                            <label class="filter-label">回答数量</label>
                            <select class="form-select">
                                <option value="">不限</option>
                                <option value="0">0个回答</option>
                                <option value="1-5">1-5个回答</option>
                                <option value="6-10">6-10个回答</option>
                                <option value="10+">10个以上</option>
                            </select>
                        </div>
                        <div class="filter-group">
                            <label class="filter-label">浏览量</label>
                            <select class="form-select">
                                <option value="">不限</option>
                                <option value="100-">100以下</option>
                                <option value="100-500">100-500</option>
                                <option value="500-1000">500-1000</option>
                                <option value="1000+">1000以上</option>
                            </select>
                        </div>
                        <div class="filter-group">
                            <label class="filter-label">提问者等级</label>
                            <select class="form-select">
                                <option value="">不限</option>
                                <option value="new">新手</option>
                                <option value="intermediate">中级</option>
                                <option value="advanced">高级</option>
                                <option value="expert">专家</option>
                            </select>
                        </div>
                    </div>
                    
                    <div class="filter-row">
                        <div class="filter-group">
                            <label class="filter-label">悬赏积分</label>
                            <select class="form-select">
                                <option value="">不限</option>
                                <option value="0">无悬赏</option>
                                <option value="1-100">1-100积分</option>
                                <option value="101-500">101-500积分</option>
                                <option value="501+">501积分以上</option>
                            </select>
                        </div>
                        <div class="filter-group">
                            <label class="filter-label">问题热度</label>
                            <select class="form-select">
                                <option value="">不限</option>
                                <option value="hot">热门</option>
                                <option value="trending">上升趋势</option>
                                <option value="controversial">有争议</option>
                            </select>
                        </div>
                    </div>
                    
                    <div class="filter-section">
                        <h3 class="filter-title">
                            <i class="fas fa-tags"></i>
                            热门标签
                        </h3>
                        <div class="tag-filter">
                            <div class="tag-item active">全部标签</div>
                            <div class="tag-item">Python</div>
                            <div class="tag-item">Java</div>
                            <div class="tag-item">前端开发</div>
                            <div class="tag-item">人工智能</div>
                            <div class="tag-item">机器学习</div>
                            <div class="tag-item">求职经验</div>
                            <div class="tag-item">健康生活</div>
                            <div class="tag-item">理财</div>
                            <div class="tag-item">考研</div>
                            <div class="tag-item">考公</div>
                        </div>
                    </div>
                </div>
                
                <div class="filter-actions">
                    <button class="btn-reset">重置筛选</button>
                    <button class="btn-apply">应用筛选</button>
                </div>
            </div>
            
            <!-- 排序和视图切换 -->
            <div class="sort-view-controls">
                <div class="sort-controls">
                    <span class="sort-label">排序方式：</span>
                    <div class="sort-options">
                        <div class="sort-option active">
                            <i class="fas fa-clock"></i>
                            <span>最新发布</span>
                        </div>
                        <div class="sort-option">
                            <i class="fas fa-comment"></i>
                            <span>回答最多</span>
                        </div>
                        <div class="sort-option">
                            <i class="fas fa-eye"></i>
                            <span>浏览最多</span>
                        </div>
                        <div class="sort-option">
                            <i class="fas fa-fire"></i>
                            <span>热门程度</span>
                        </div>
                    </div>
                </div>
                <div class="view-controls">
                    <div class="view-option active" data-view="list" title="列表视图">
                        <i class="fas fa-list"></i>
                    </div>
                    <div class="view-option" data-view="grid" title="网格视图">
                        <i class="fas fa-th"></i>
                    </div>
                </div>
            </div>
            
            <!-- 问答列表 -->
            <div class="qa-list" id="qaContainer">
                <!-- 问答1 -->
                <div class="qa-item">
                    <div class="qa-item-content">
                        <div class="qa-header">
                            <div class="qa-stats">
                                <div class="qa-answers">8</div>
                                <div class="qa-answers-label">回答</div>
                            </div>
                            <div class="qa-main">
                                <h3 class="qa-title">
                                    <a href="#">Python中列表和元组的主要区别是什么？在实际开发中应该如何选择使用？</a>
                                </h3>
                                <div class="qa-tags">
                                    <span class="qa-tag">Python</span>
                                    <span class="qa-tag">列表</span>
                                    <span class="qa-tag">元组</span>
                                    <span class="qa-tag">数据结构</span>
                                </div>
                                <div class="qa-meta">
                                    <div class="qa-author">
                                        <div class="author-info">
                                            <img src="https://picsum.photos/id/1012/32/32" alt="用户头像" class="author-avatar">
                                            <span class="author-name">编程初学者</span>
                                        </div>
                                        <span class="qa-time">
                                            <i class="far fa-clock"></i>
                                            2小时前
                                        </span>
                                    </div>
                                    <span class="qa-status status-answered">
                                        <i class="fas fa-comment"></i>
                                        已回答
                                    </span>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                
                <!-- 问答2 -->
                <div class="qa-item">
                    <div class="qa-item-content">
                        <div class="qa-header">
                            <div class="qa-stats">
                                <div class="qa-answers">0</div>
                                <div class="qa-answers-label">回答</div>
                            </div>
                            <div class="qa-main">
                                <h3 class="qa-title">
                                    <a href="#">2023年前端开发有哪些新的趋势和技术值得学习？</a>
                                </h3>
                                <div class="qa-tags">
                                    <span class="qa-tag">前端开发</span>
                                    <span class="qa-tag">Web开发</span>
                                    <span class="qa-tag">技术趋势</span>
                                </div>
                                <div class="qa-meta">
                                    <div class="qa-author">
                                        <div class="author-info">
                                            <img src="https://picsum.photos/id/1025/32/32" alt="用户头像" class="author-avatar">
                                            <span class="author-name">前端学习者</span>
                                        </div>
                                        <span class="qa-time">
                                            <i class="far fa-clock"></i>
                                            5小时前
                                        </span>
                                    </div>
                                    <span class="qa-status status-unanswered">
                                        <i class="fas fa-question"></i>
                                        未回答
                                    </span>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                
                <!-- 问答3 -->
                <div class="qa-item">
                    <div class="qa-item-content">
                        <div class="qa-header">
                            <div class="qa-stats">
                                <div class="qa-answers">15</div>
                                <div class="qa-answers-label">回答</div>
                            </div>
                            <div class="qa-main">
                                <h3 class="qa-title">
                                    <a href="#">机器学习和深度学习有什么本质区别？初学者应该从哪个开始学习？</a>
                                </h3>
                                <div class="qa-tags">
                                    <span class="qa-tag">机器学习</span>
                                    <span class="qa-tag">深度学习</span>
                                    <span class="qa-tag">人工智能</span>
                                    <span class="qa-tag">学习路径</span>
                                </div>
                                <div class="qa-meta">
                                    <div class="qa-author">
                                        <div class="author-info">
                                            <img src="https://picsum.photos/id/1074/32/32" alt="用户头像" class="author-avatar">
                                            <span class="author-name">AI爱好者</span>
                                        </div>
                                        <span class="qa-time">
                                            <i class="far fa-clock"></i>
                                            昨天 14:30
                                        </span>
                                    </div>
                                    <span class="qa-status status-resolved">
                                        <i class="fas fa-check"></i>
                                        已解决
                                    </span>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                
                <!-- 问答4 -->
                <div class="qa-item">
                    <div class="qa-item-content">
                        <div class="qa-header">
                            <div class="qa-stats">
                                <div class="qa-answers">5</div>
                                <div class="qa-answers-label">回答</div>
                            </div>
                            <div class="qa-main">
                                <h3 class="qa-title">
                                    <a href="#">程序员如何有效提升自己的代码质量和编程效率？有哪些实用工具推荐？</a>
                                </h3>
                                <div class="qa-tags">
                                    <span class="qa-tag">编程效率</span>
                                    <span class="qa-tag">代码质量</span>
                                    <span class="qa-tag">开发工具</span>
                                    <span class="qa-tag">程序员</span>
                                </div>
                                <div class="qa-meta">
                                    <div class="qa-author">
                                        <div class="author-info">
                                            <img src="https://picsum.photos/id/1066/32/32" alt="用户头像" class="author-avatar">
                                            <span class="author-name">全栈开发者</span>
                                        </div>
                                        <span class="qa-time">
                                            <i class="far fa-clock"></i>
                                            3天前
                                        </span>
                                    </div>
                                    <span class="qa-status status-answered">
                                        <i class="fas fa-comment"></i>
                                        已回答
                                    </span>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                
                <!-- 问答5 -->
                <div class="qa-item">
                    <div class="qa-item-content">
                        <div class="qa-header">
                            <div class="qa-stats">
                                <div class="qa-answers">23</div>
                                <div class="qa-answers-label">回答</div>
                            </div>
                            <div class="qa-main">
                                <h3 class="qa-title">
                                    <a href="#">计算机专业应届生找工作，应该如何准备面试？有哪些常见的面试问题？</a>
                                </h3>
                                <div class="qa-tags">
                                    <span class="qa-tag">求职</span>
                                    <span class="qa-tag">面试</span>
                                    <span class="qa-tag">计算机专业</span>
                                    <span class="qa-tag">应届生</span>
                                </div>
                                <div class="qa-meta">
                                    <div class="qa-author">
                                        <div class="author-info">
                                            <img src="https://picsum.photos/id/1027/32/32" alt="用户头像" class="author-avatar">
                                            <span class="author-name">求职中的学生</span>
                                        </div>
                                        <span class="qa-time">
                                            <i class="far fa-clock"></i>
                                            1周前
                                        </span>
                                    </div>
                                    <span class="qa-status status-resolved">
                                        <i class="fas fa-check"></i>
                                        已解决
                                    </span>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            
            <!-- 分页 -->
            <div class="pagination-container">
                <div class="pagination">
                    <div class="page-item disabled">
                        <i class="fas fa-chevron-left"></i>
                    </div>
                    <div class="page-item active">1</div>
                    <div class="page-item">2</div>
                    <div class="page-item">3</div>
                    <div class="page-item">4</div>
                    <div class="page-item">5</div>
                    <div class="page-item">
                        <i class="fas fa-chevron-right"></i>
                    </div>
                </div>
            </div>
        </div>
    </div>
    
    <!-- Bootstrap 5 JS Bundle with Popper -->
    <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"></script>
    
    <script>
        // 高级筛选切换功能
        const advancedFiltersToggle = document.getElementById('advancedFiltersToggle');
        const advancedFilters = document.getElementById('advancedFilters');
        const advancedFiltersIcon = document.getElementById('advancedFiltersIcon');
        
        advancedFiltersToggle.addEventListener('click', function() {
            if (advancedFilters.style.display === 'none') {
                advancedFilters.style.display = 'block';
                advancedFiltersIcon.classList.remove('fa-chevron-down');
                advancedFiltersIcon.classList.add('fa-chevron-up');
            } else {
                advancedFilters.style.display = 'none';
                advancedFiltersIcon.classList.remove('fa-chevron-up');
                advancedFiltersIcon.classList.add('fa-chevron-down');
            }
        });
        
        // 标签筛选功能
        const tagItems = document.querySelectorAll('.tag-item');
        tagItems.forEach(tag => {
            tag.addEventListener('click', function() {
                // 如果点击的是"全部标签"，则取消其他所有标签的选中状态
                if (this.textContent === '全部标签') {
                    tagItems.forEach(t => t.classList.remove('active'));
                    this.classList.add('active');
                } else {
                    // 否则，取消"全部标签"的选中状态，并切换当前标签的状态
                    tagItems[0].classList.remove('active');
                    this.classList.toggle('active');
                }
            });
        });
        
        // 排序选项功能
        const sortOptions = document.querySelectorAll('.sort-option');
        sortOptions.forEach(option => {
            option.addEventListener('click', function() {
                sortOptions.forEach(opt => opt.classList.remove('active'));
                this.classList.add('active');
                // 在实际应用中，这里会根据排序选项重新加载数据
            });
        });
        
        // 视图切换功能
        const viewOptions = document.querySelectorAll('.view-option');
        const qaContainer = document.getElementById('qaContainer');
        
        viewOptions.forEach(option => {
            option.addEventListener('click', function() {
                viewOptions.forEach(opt => opt.classList.remove('active'));
                this.classList.add('active');
                
                const viewType = this.getAttribute('data-view');
                if (viewType === 'grid') {
                    qaContainer.classList.remove('qa-list');
                    qaContainer.classList.add('qa-grid');
                } else {
                    qaContainer.classList.remove('qa-grid');
                    qaContainer.classList.add('qa-list');
                }
            });
        });
        
        // 分页功能
        const pageItems = document.querySelectorAll('.page-item:not(.disabled)');
        pageItems.forEach(item => {
            item.addEventListener('click', function() {
                if (!this.classList.contains('active')) {
                    pageItems.forEach(i => i.classList.remove('active'));
                    this.classList.add('active');
                    // 在实际应用中，这里会加载对应页码的数据
                }
            });
        });
        
        // 筛选按钮功能
        const applyFilterBtn = document.querySelector('.btn-apply');
        const resetFilterBtn = document.querySelector('.btn-reset');
        
        applyFilterBtn.addEventListener('click', function() {
            // 在实际应用中，这里会收集所有筛选条件并应用
            alert('筛选条件已应用！');
        });
        
        resetFilterBtn.addEventListener('click', function() {
            // 重置所有筛选条件
            document.querySelectorAll('select').forEach(select => {
                select.selectedIndex = 0;
            });
            
            tagItems.forEach((tag, index) => {
                if (index === 0) {
                    tag.classList.add('active');
                } else {
                    tag.classList.remove('active');
                }
            });
            
            // 在实际应用中，这里会重置筛选并加载默认数据
        });
    </script>
</body>
</html>

